﻿using System;
using System.Web;
using Solution.CMS.Controls;

namespace Solution.CMS
{
    public partial class CMS : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //string url = HttpContext.Current.Request.Url.AbsoluteUri;
            //// http://localhost:1302/TESTERS/Default6.aspx

            //string path = HttpContext.Current.Request.Url.AbsolutePath;
            //// /TESTERS/Default6.aspx

            //string host = HttpContext.Current.Request.Url.Host;
            //// localhost
            
            //if (Session["user"] == null)
            //{
            //    Response.Redirect("Login.aspx");
            //    return;
            //}

            var menu = (Menu) this.LoadControl("Controls/Menu.ascx");
            phdHeader.Controls.Add(menu);
        }
    }
}